<!DOCTYPE html PUBLIC "-//W3C//Dlabel XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/Dlabel/xhtml1-transitional.dlabel">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"  />
    <link href="/css/main.css" rel="stylesheet" type="text/css" media="screen"/>
    <title>Cadastrar a Lista</title>
</head>

<body>
<div id="tudo">

<div id="topo"><h1>Cadastrar Lista</h1></div>
<div id="table" align="center">
<form method="post" action="/cadastrar" >

	<label >Descricao do Presente</label><label ><input type="text" id="desc_presente" name="desc_presente"></label>
	<br/>	
	<input type="submit" value="Cadastrar">
</form>
</div> 
	<div>
		<h2>Presentes cadastrados</h2>
		<ul>
		{% for lista in listas %}
		  {% if lista.descricao %}
			<li>{{ lista.descricao }}</li> 
		  {% else %}
		   nenhum presente cadastrado
		  {% endif %}
		 {% endfor %}
		</ul>
	</div>
	
</div>
<br />
</body>
</html>

